package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.dto.WarehouseAreaDTO;
import com.itheima.pojo.WarehouseArea;

import java.util.List;

public interface WarehouseAreaService {

    Page<WarehouseAreaDTO> getWarehouseAreaPage(Page<WarehouseAreaDTO> page, WarehouseAreaDTO dto);

    WarehouseArea getWarehouseAreaById(Integer id);

    boolean saveWarehouseArea(WarehouseArea warehouseArea);

    boolean updateWarehouseArea(WarehouseArea warehouseArea);

    boolean deleteWarehouseArea(Integer id);

    List<WarehouseArea> listAll();
}